package com.suep.business.dto;

import com.suep.business.enums.CouponType;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class CouponDTO {
    /*主键ID*/
    Integer id;
    /*优惠码*/
    String code;
    String name;
    String description;
    //枚举常量有FIXED_AMOUNT 满减券 PERCENTAGE 打折券
    CouponType type;
    // 折扣金额或折扣比例
    BigDecimal discount;
    /*最低门槛*/
    BigDecimal minOrderAmount;
    /*过期时间*/
    LocalDateTime expiryDate;
    private Integer totalCount; // 总发行量
    private Integer remainCount;//剩余数量
    /*目前状态*/
    Integer status;
    String storeName;

    LocalDateTime createTime;
    LocalDateTime updateTime;
}
